<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.wxtf.platform.plugins.user.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	UserBean user = (UserBean)request.getSession().getAttribute("userBean");
	
	String _db = user.getDbType();
	Map<String,List<Map<String, String>>> dicMap = user.getDicMap();
	List<Map<String, String>> list = null;
	String temp = "";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<link type="text/css" rel="stylesheet" href="ligerUI/skins/Aqua/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/<%=user.getUserCss()%>/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/ligerui-icons.css" />
		<link type="text/css" rel="stylesheet" href="resource/css/style.css" />

		<script type="text/javascript" src="js/jquery/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="ligerUI/js/core/base.js"></script>
		<script type="text/javascript" src="ligerUI/js/ligerui.min.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript" src="js/validata.js"></script>

		<script type="text/javascript" src="ligerUI/js/plugins/ligerGrid.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerTree.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerForm.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerDateEditor.js"></script>
		
		<script type="text/javascript" src="ligerUI/jquery-validation/jquery.validate.min.js" ></script> 
		<script type="text/javascript" src="ligerUI/jquery-validation/jquery.metadata.js"></script>
		<script type="text/javascript" src="ligerUI/jquery-validation/messages_cn.js" ></script>
		
<script type="text/javascript">
var _db = '<%=_db%>';

_jsonObj.classname = "com.wxtf.platform.main.sygl.neonate_detailAction";
_jsonObj.methodname = "queryPage";
_jsonObj.logicdata = "[{\"types\":\"init\"}]";


var win;//人员新建/修改弹出框
var win2;//高级检索弹出框
var win3;//机构弹出框
var win4;//机构弹出框
var manager;//人员表格
var arraySerarchList = new Array();//高级搜索条件数组

$(function(){
	validEvent("emp-form");
	
	manager = $("#emp-grid").ligerGrid({
		url: _url, parms: _jsonObj, width: '100%', height: '100%',
		usePager: true, rownumbers: true, checkbox: true, alternatingRow: true,
		columns: [
			{ display: 'tbfi_id', name: 'tbfi_id', hide: true,width:1 },
			{ display: 'org_id', name: 'org_id', hide: true,width:1 },
			{ display: 'tbenm_id', name: 'tbenm_id', hide: true,width:1 },
			{ display: '机构名称', name: 'org_name', width: 150, align: 'left' },
			{
                    display: '计划状态登记项', name: 'tbenm_plan_status',width: 100, isSort:false,
                    render: function (row)
                    {
                       var html = '';
                       if(row.tbepr_option=='0'){
                       		html = '计划内一胎';
                       }else if(row.tbepr_option=='1'){
                       		html = '计划内二胎';
                       }
                       return html;
                    }
            },
			{ display: '胎次', name: 'tbenm_gravida_times', width: 100, align: 'left' },
			{ display: '胎数', name: 'tbenm_gravida_num', width: 100, align: 'left' },
			{ display: '出生时间', name: 'tbenm_birth_time', width: 150, align: 'left' },
			{ display: 'tbenm_memo', name: 'tbenm_memo', width:  1, hide:true },
			{ display: 'reserve1', name: 'reserve1', width:  1, hide:true },
			{ display: 'reserve2', name: 'reserve2', width:  1, hide:true },
			{ display: 'reserve3', name: 'reserve3', width:  1, hide:true },
			{ display: 'reserve4', name: 'reserve4', width:  1, hide:true },
			{ display: 'reserve5', name: 'reserve5', width:  1, hide:true },
			{ display: '录入人', name: 'create_by', width:  1, hide:true },
			{ display: '录入时间', name: 'create_time', width:  1, hide:true },
			{ display: '最后修改人', name: 'last_modify_by', width:  1, hide:true },
			{ display: '最后修改时间', name: 'last_modify_time', width: 1, hide:true },
			{ display: 'tbend_id', name: 'tbend_id', width:  1, hide:true },
			{ display: '姓名', name: 'tbend_name', width: 150, align: 'left' },
			{ display: '性别', name: 'tbend_sex', width: 150, align: 'left' },
			{ display: '年龄', name: 'tbend_age', width: 150, align: 'left' },
			{ display: '身份证号', name: 'tbend_idcard', width: 150, align: 'left' },
			{ display: '编辑', name:'edit',width:60,render: function(record, index, value, oth){
					return "<img src='ligerUI/skins/icons/edit.gif' onclick='addData(" + JSON.stringify(record) + ")'></img>";
				}
			}
		],
		toolbar: {
			items: [
				{ text: '添加', click: function(){ addData(); }, icon: 'add' },
				{ line: true },
				{ text: '删除', click: function(){ delData(); },icon: 'delete'}
			]
		}
		
	});

	
	/*
	 * 日期框
	 */
	$("#tbenm_birth_time").ligerDateEditor({ format: "yyyy-MM-dd", width:182 });

});


/*
 * 表格刷新
 */
function reload(){
	_jsonObj.methodname = "queryPage";
	_jsonObj.logicdata = "[{\"types\":\"init\"}]";
	manager.loadData();
}

/*
 * ajax成功回调
 */
function ajaxCallbackSuccFunc(data, textStatus){
	if(win){
		win.hide();
	}
	succMsgTip(data.resultrecord);
	reload();
}

/*
 * ajax失败回调
 */
function ajaxCallbackErrorFunc(data, textStatus){
	succMsgTip(data.resultrecord);
}

/*
 * 获取列表选中的人员ID
 */
function getUserIds(){
	var arrayUsers = manager.getSelecteds();
	if(arrayUsers.length == 0){
		return "";
	} else {
		var text = "";
		for(var i=0; i<arrayUsers.length; i++){
			text += arrayUsers[i].tbepr_id + ",";
		}
		return text.substring(0, text.length - 1);
	}
}

/*
 * 新增/修改人员
 */
function addData(row){
	document.getElementById('emp-form').reset();
	
	if(row){
		loadForm("emp-form", row);
	} else {
		$("#tbe_id").val('');
	}
	
	if(win == null){
		win = initWindowByDiv('empAdd-div', '编辑信息',600, 300 ,save, closeWin);
	}else{
		win.show();
	}
}

/*
 * 新建/修改人员信息
 */
function save(){
	clearAllTip();//清除气泡
	if($("#emp-form").valid()){
		_jsonObj.logicdata = getForm("emp-form");
		var tbe_id = $("#tbe_id").val();
		if(tbe_id == ''){
			_jsonObj.methodname = "save";
			callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
		} else {
			_jsonObj.methodname = "update";
			callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
		}
	}
}

/*
 * 删除人员
 */
function delData(){
	var userIds = getUserIds();
	if(userIds == ""){
		succMsgTip('请至少选择一个用户进行操作');
		return;
	}
	$.ligerDialog.confirm('确定要删除选中的数据吗？（删除不可恢复）', function (opt) { 			
		if(opt){
			_jsonObj.methodname = "delete";
			_jsonObj.logicdata = "[{\"ids\":\"" + userIds + "\"}]";
			callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
		}
	});
}

/*
 * 打开组织机构树
 */
function openOrg(ele){
	var tree;
	if(win3==null){
		win3 = initWindowByDiv('org-tree-win', '选择机构', 400, 300, function(item, dialog){
			var data = tree.getCheckeds();
			if(data.length == 1){
				$('#org_id').val(data[0].data.id);
				$('#reserve1').val(data[0].data.text);
			} else {
				succMsgTip('请选择一个机构');
				return;
			}
			
			win3.hide();
		}, closeWin);
		
		tree = $("#org-tree").ligerTree({
			single:true, checkbox: true, nodeWidth: 200,
			url: _url, autoCheckboxEven: false,
			param: {
				"classname": "com.wxtf.platform.plugins.org.OrgAction",
				"methodname": "listOrg4App",
				"logicdata": "[]",
			}
		});
	}else{
		win3.show();
	}
}

/*
 * 组织机构树-条件查询
 */
function openOrg1(ele){
	var tree;
	if(win4==null){
		win4 = initWindowByDiv('org1-tree-win', '选择机构', 400, 300, function(item, dialog){
			var data = tree.getCheckeds();
			if(data.length > 0){
				var id = '', name = '';
				for(var i=0; i<data.length; i++){
					id += data[i].data.id + ','
					name += data[i].data.text + ';';
				}
				id = id.substr(0, id.length - 1);
				$('#org4q').val(id);
				$('#org2').val(name);
			} else {
				succMsgTip('请选择一个机构');
				return;
			}
			
			win4.hide();
		}, closeWin);
		
		tree = $("#org1-tree").ligerTree({
			checkbox: true, nodeWidth: 200,
			url: _url, autoCheckboxEven: false,
			param: {
				"classname": "com.wxtf.platform.plugins.org.OrgAction",
				"methodname": "listOrg4App",
				"logicdata": "[]",
			}
		});
	}else{
		win4.show();
	}
}

/*
 * 重置-条件查询
 */
function serReset(){
	$('#org4q').val('0');
	$('#org2').val('全部机构');
	$('#ser2').val('2');
	$('#ser3').val('');
}

/*
 * 条件查询
 */
function serch1(){
	var orgIds = $('#org4q').val();
	var tbe_work_permit = $('#ser3').val();
	var tbe_spell_code = $('#ser2').val();

	
	_jsonObj.methodname = "queryPage";
	_jsonObj.logicdata = '[{\"orgIds\":\"' + orgIds + '\",\"tbe_work_permit\":\"' + tbe_work_permit
			+ '\",\"tbe_spell_code\":\"' + tbe_spell_code
			+ '\",\"types\":\"serch1\"}]';
	manager.loadData();
}

/*
 * 高级查询
 */
function serch2(){
	if(win2 == null){
		win2 = initWindowByDiv('tallSearch','高级查询', 670, 454, function(){
			var tableName = "";
        	var objArrayOne = $("[name=luojiOne]");
        	var objArrayTwo = $("[name=luojiTwo]");
        	var arrayColsName = $("[name=colsName]");
        	var arrayColsValue = $("[name=colsValue]");
        	
        	var tempSearch = "";
        	for(var i=0; i<arrayColsName.length; i++){
        		var conditionValue = objArrayOne[i+1].value;
        		if(conditionValue == "like"){
		        	arraySerarchList.push(" " + objArrayTwo[i+1].value+" "+tableName+arrayColsName[i].value+" "+objArrayOne[i+1].value+" '%"+arrayColsValue[i].value+"%' ");
        		}else if(conditionValue == "in"){
        			var strArr = arrayColsValue[i].value.split(",");
        			var tempStr = "";
        			for(var j=0; j<strArr.length; j++){
        				tempStr +="'"+strArr[j]+"',";
        			}
		        	arraySerarchList.push(" " + objArrayTwo[i+1].value+" "+tableName+arrayColsName[i].value+" "+objArrayOne[i+1].value+" ("+tempStr.substring(0,tempStr.length-1)+") ");
        		}else if(conditionValue == "between"){
        			var strArr = arrayColsValue[i].value.split(",");
		        	arraySerarchList.push(" " + objArrayTwo[i+1].value+" "+tableName+arrayColsName[i].value+" "+objArrayOne[i+1].value+" '"+strArr[0]+"' and '"+strArr[1]+"' ");
        		}else if(conditionValue == "is null"){
		        	arraySerarchList.push(" " + objArrayTwo[i+1].value+" "+tableName+arrayColsName[i].value+" "+objArrayOne[i+1].value+" ");
        		}else{
		        	arraySerarchList.push(" " + objArrayTwo[i+1].value+" "+tableName+arrayColsName[i].value+" "+objArrayOne[i+1].value+" '"+arrayColsValue[i].value+"' ");
        		}
        	}
        	
        	var whereAnd = "";
        	for(var i=0;i<arraySerarchList.length;i++){
        		whereAnd += arraySerarchList[i];
        	}
        	
        	_jsonObj.methodname = "queryPage";
			_jsonObj.logicdata = '[{\"where\":\"' + whereAnd + '\",\"types\":\"serch2\"}]';
			manager.loadData();
        	
        	arraySerarchList.length = 0;
        	win2.hide();
        	
		},closeWin);
	}else{
		win2.show();
	}
}

/*
 * 动态给table添加一个tr-高级查询
 */
function tallSearchCols(clValue){
	var clName = $("option[value='" + clValue + "']").eq(0).text()
	if(clValue=="tbe_birthday" || clValue=="tbe_join_time" || clValue=="tbe_married_time"|| clValue=="tbe_work_area" || clValue=="tbe_es_time" ){
		$("#appendTable").append('<tr style="height:26px;"><td width="60px"><input name="colsName"  type="hidden" value="'+clValue+'">'+clName+'</td><td width="120px">'+$("#condition").html()+'</td><td width="150px"><input name="colsValue" class="times" type="text"></td><td width="90px">'+$("#conditionAnd").html()+'</td><td width="60px" style="cursor: pointer;" onClick="getDel(this)">删除</td></tr>');
		$(".times").ligerDateEditor({width :120});
	}else if(clValue=="tbe_is_es" || clValue=="tbe_is_barrenness" || clValue=="tbe_is_again_birth" || clValue=="tbe_is_late_birth" || clValue=="tbe_is_late_marriage"){
		$("#appendTable").append('<tr style="height:26px;"><td width="60px"><input name="colsName"  type="hidden" value="'+clValue+'">'+clName+'</td><td width="120px">'+$("#condition").html()+'</td><td width="150px"><select name="colsValue" type="text" style="width:120px"><option value="1">是</option><option value="0">否</option></select></td><td>'+$("#conditionAnd").html()+'</td><td style="cursor: pointer;" width="60px" onClick="getDel(this)">删除</td></tr>');
	}else if(clValue=="tbe_sex"){
		$("#appendTable").append('<tr style="height:26px;"><td width="60px"><input name="colsName"  type="hidden" value="'+clValue+'">'+clName+'</td><td width="120px">'+$("#condition").html()+'</td><td width="150px"><select name="colsValue" type="text" style="width:120px"><option value="男">男</option><option value="女">女</option></select></td><td>'+$("#conditionAnd").html()+'</td><td style="cursor: pointer;" width="60px" onClick="getDel(this)">删除</td></tr>');
	}else {
		$("#appendTable").append('<tr style="height:26px;"><td width="60px"><input name="colsName"  type="hidden" value="'+clValue+'">'+clName+'</td><td width="120px">'+$("#condition").html()+'</td><td width="150px"><input name="colsValue" type="text" style="width:120px"></td><td width="90px">'+$("#conditionAnd").html()+'</td><td width="60px" style="cursor: pointer;" onClick="getDel(this)">删除</td></tr>');
	}
}

/*
 * 删除条件-高级查询
 */
function getDel(ele){
	$(ele).parent().remove();  
}

/*
 * 婚姻状况事件
 */
function changeEvent1(ele){
	var tbe_marital_status = $('#tbe_marital_status').val();
	if('8A90F0D0176C4961B322BEB26703A320' == tbe_marital_status){//未婚者没有婚姻状态
		ele.value = "";
		succMsgTip('未婚时，婚姻状态为空');
	}
}

/*
 * 入厂时间验证
 */
function joinTime(ele){
	var tbe_work_area = $('#tbe_work_area').val();
	var tbe_join_time = $('#tbe_join_time').val();
	if('' != tbe_work_area && '' != tbe_join_time){
		var res = compareDate(tbe_work_area, tbe_join_time);
		if(null == res || res > 0){
			ele.value = '';
			succMsgTip('工作时间应小于等于入厂时间');
			return;
		}
		var a = tbe_work_area.substr(0,4);
		var b = tbe_join_time.substr(0,4);
		$('#tbe_seniority').val(parseInt(b) - parseInt(a));
	}
}

</script>
	<body>
		<table id="aaa" class="serTable">
			<tr>
				<td>
					<input id="org4q" value="0" type="hidden"/>
					机构：<input id="org2" value="全部机构" readonly="readonly" onclick="openOrg1(this);"/>
				</td>
				<td>计划状态：
				<select id="ser2" style="width: 160px;">
				<option value="2"> </option>
				<option value="0">计划内一胎</option>
				<option value="1">计划内二胎</option>
				</select>
				</td>
				<td>姓名：<input id="ser3"/></td>
				<td><input class="btn2" value="搜索" type="button" onclick="serch1();" /></td>
				<td><input class="btn2" value="重置" type="button" onclick="serReset();" /></td>
			</tr>
		</table>
		
		<div id="emp-grid"></div>
		<div id="empAdd-div" style="display: none;">
			<form id="emp-form" name="emp-form">
				<input type="hidden" id="tbenm_id" name="tbenm_id" value="" />
				<input type="hidden" id="org_id" name="org_id" value="" />
				<input type="hidden" id="tbfi_id" name="tbfi_id" value="" />
				<input type="hidden" id="tbend_id" name="tbend_id" value="" />
				<input type="hidden" id="reserve1" name="reserve1" value="" />
				<input type="hidden" id="reserve2" name="reserve2" value="" />
				<input type="hidden" id="reserve3" name="reserve3" value="" />
				<input type="hidden" id="reserve4" name="reserve4" value="" />
				<input type="hidden" id="reserve5" name="reserve5" value="" />
				<input type="hidden" id="create_by" name="create_by" value="" />
				<input type="hidden" id="create_time" name="create_time" value="" />
				<input type="hidden" id="last_modify_by" name="last_modify_by" value="" />
				<input type="hidden" id="last_modify_time" name="last_modify_time" value="" />
				
				<table class="form_table">
					<tr>
						<td colspan="9" align="left">
							<div style="border-bottom: 1px solid #EBEBEB; font-weight:bold;height: 28px; line-height: 28px;margin: 0 0 5px;" >
								<img src="ligerUI/skins/icons/communication.gif">
								<span>新生儿信息</span>
							</div>
						</td>
					</tr>
					<tr>
						<td class="form_label">机构：</td>
						<td><input class="textbg1" id="org_name" name="org_name" validate="{required:true,maxlength:256}" onclick="openOrg(this);" readonly="readonly" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"></td>
						<td><font color="red">*</font></td>
						<td class="form_label">计划状态：</td>
						<td>
						<select id="tbenm_plan_status" name="tbenm_plan_status" style="width: 182px;">
						<option value="0">计划内一胎</option>
						<option value="1">计划内二胎</option>
						</select>
						</td>
						<td><font color="red">*</font></td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label">胎次：</td>
						<td><input class="textbg1" id="tbenm_gravida_times" name="tbenm_gravida_times" validate="{required:true,maxlength:32}" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"></td>
						<td></td>
						<td class="form_label">胎数：</td>
						<td><input class="textbg1" id="tbenm_gravida_num" name="tbenm_gravida_num" validate="{maxlength:32}" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"></td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label">姓名：</td>
						<td><input class="textbg1" id="tbend_name" name="tbend_name" validate="{required:true,maxlength:32}" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"></td>
						<td><font color="red">*</font></td>
						<td class="form_label">性别：</td>
						<td align="left" id="tbend_sex">
							<input style="margin-top: 2px;" type="radio" name="tbe_sex" value="男" checked="checked" />男
							<input style="margin-top: 2px;" type="radio" name="tbe_sex" value="女" />女
						</td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label">年龄：</td>
						<td><input class="textbg1" id="tbend_age" name="tbend_age" validate="{required:true,maxlength:32}" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"></td>
						<td></td>
						<td class="form_label">身份证号</td>
						<td><input class="textbg1" id="tbend_idcard" name="tbend_idcard" validate="{maxlength:32}" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"></td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label">出生时间：</td>
						<td><input id="tbenm_birth_time" name="tbenm_birth_time" readonly="readonly"></td>
						<td></td>
						<td class="form_label">备注：</td>
						<td><input class="textbg1" id="tbenm_memo" name="tbenm_memo" validate="{maxlength:512}" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"></td>
						<td></td>
					</tr>
				
					<tr><td><br /></td></tr>
				</table>
			</form>
		</div>
		<div id="org-tree-win" style="display: none;">
			<div id="org-tree"></div>
		</div>
		<div id="org1-tree-win" style="display: none;">
			<div id="org1-tree"></div>
		</div>
		
		<!-- 将用到的两个常用逻辑运算符初始化在页面中便于上面的使用  -->
		<div style="display: none;" id="condition">
			<select name="luojiOne">
				<option value="=">等于</option>
				<option value="<>">不等于</option>
				<option value=">">大于</option>
				<option value="<"">小于</option>
				<option value="is null">为NULL</option>
				<option value="like">包含</option>
				<option value="in">在...之中(1,2,3)</option>
				<option value="between">在...之间(1,2)</option>
			</select>
		</div>
		<div style="display: none;" id="conditionAnd">
			<select name="luojiTwo">
				<option value="and">与</option>
				<option value="or">或</option>
			</select>
		</div>
		<div id="tallSearch" style="display: none;">
			<table width="99%" height="100%">
				<tr>
					<td width="20%">字段列表</td>
					<td width="80%" style="text-algin: center;">
						<table width="100%">
							<tr>
								<td width="60px">字段名称</td>
								<td width="130px">条件匹配</td>
								<td width="150px">字段赋值</td>
								<td width="90px">条件关系</td>
								<td width="60px">移除操作</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<!-- select中给定的字段为数据库中字段，此处给出表明，是为了后台有多表查询时使用，但是此查询并不适合嵌套查询（子查询） 后台有统一替换过程  -->
					<td width="20%" style="vertical-align: top;">
						<select id="sel" style="height: 356px; width: 120px;" ondblclick="tallSearchCols(this.value);" multiple="multiple">
							<option value="tbe_name">姓名</option>
							<option value="tbe_former_name">曾用名</option>
							<option value="tbe_spell_code">拼音码</option>
							<option value="tbe_sex">性别</option>
							<option value="tbe_order">排序号</option>
							<option value="tbe_idcard">身份证号</option>
							<option value="tbe_birthday">出生日期</option>
							<option value="tbe_age">年龄</option>
							<option value="tbe_nation">民族</option>
							<option value="tbe_native_palce">籍贯</option>
							<option value="tbe_birthplace">出生地</option>
							<option value="tbe_address">家庭住址</option>
							<option value="tbe_family_phone">家庭电话</option>
							<option value="tbe_mobile">手机</option>
							<option value="tbe_graduate_college">毕业学校</option>
							<option value="tbe_qualification">学历</option>
							<option value="tbe_major">所学专业</option>
							<option value="tbe_work_permit">职工证号</option>
							<option value="tbe_position">职务</option>
							<option value="tbe_status">员工状态</option>
							<option value="tbe_employment_forms">用工形式</option>
							<option value="tbe_work_area">工作时间</option>
							<option value="tbe_join_time">入厂时间</option>
							<option value="tbe_seniority">工龄</option>
							<option value="tbe_marital_status">婚姻状态</option>
							<option value="tbe_marital_condition">婚姻状况</option>
							<option value="tbe_married_time">结婚时间</option>
							<option value="tbe_marriage_certificate">结婚证号</option>
							<option value="tbe_is_late_marriage">是否晚婚</option>
							<option value="tbe_is_late_birth">是否晚育</option>
							<option value="tbe_is_again_birth">是否允许再生育</option>
							<option value="tbe_is_barrenness">是否不孕症(绝经)</option>
							<option value="tbe_ba_status">生育能力状态</option>
							<option value="tbe_is_es">是否重点服务对象</option>
							<option value="tbe_es_time">设为重点时间</option>
							<option value="tbe_es_reason">重点理由</option>
							<option value="tbe_birth_control_measures">节育措施</option>
							<option value="tbe_children_status">子女情况</option>
							<option value="tbe_memo">备注</option>
						</select>
					</td>
					<td width="80%" style="text-algin: center;" valign="top">
						<table width="100%" id="appendTable">
						</table>
					</td>
				</tr>
			</table>
	</body>
</html>










